package com.bean.vo.comment;


import java.text.DecimalFormat;

/**
 * 返回前端-酒店各类评分VO
 */
public class ItripScoreCommentVO {
    private float avgPositionScore;//点评查询页面酒店的位置得分
    private float avgFacilitiesScore;//点评查询页面酒店的设施得分
    private float avgServiceScore;//点评查询页面酒店的服务得分
    private float avgHygieneScore;//点评查询页面酒店的卫生得分
    private float avgScore;//点评查询页面酒店的总体得分

    DecimalFormat df = new DecimalFormat("#.0");


    @Override
    public String toString() {
        return "ItripScoreCommentVO{" +
                "avgPositionScore=" + avgPositionScore +
                ", avgFacilitiesScore=" + avgFacilitiesScore +
                ", avgServiceScore=" + avgServiceScore +
                ", avgHygieneScore=" + avgHygieneScore +
                ", avgScore=" + avgScore +
                '}';
    }

    public ItripScoreCommentVO() {
    }

    public ItripScoreCommentVO(float avgPositionScore, float avgFacilitiesScore, float avgServiceScore, float avgHygieneScore, float avgScore) {
        this.avgPositionScore = avgPositionScore;
        this.avgFacilitiesScore = avgFacilitiesScore;
        this.avgServiceScore = avgServiceScore;
        this.avgHygieneScore = avgHygieneScore;
        this.avgScore = avgScore;
    }

    public String getAvgPositionScore() {
        return df.format(avgPositionScore);
    }

    public void setAvgPositionScore(float avgPositionScore) {
        this.avgPositionScore = avgPositionScore;
    }

    public String getAvgFacilitiesScore() {
        return df.format(avgFacilitiesScore);
    }

    public void setAvgFacilitiesScore(float avgFacilitiesScore) {
        this.avgFacilitiesScore = avgFacilitiesScore;
    }

    public String getAvgServiceScore() {
        return df.format(avgServiceScore);
    }

    public void setAvgServiceScore(float avgServiceScore) {
        this.avgServiceScore = avgServiceScore;
    }

    public String getAvgHygieneScore() {
        return df.format(avgHygieneScore);
    }

    public void setAvgHygieneScore(float avgHygieneScore) {
        this.avgHygieneScore = avgHygieneScore;
    }

    public String getAvgScore() {
        return df.format(avgScore);
    }

    public void setAvgScore(float avgScore) {
        this.avgScore = avgScore;
    }

}
